﻿<?xml version="1.0" encoding="utf-8" ?>
<menu locale="AdminMenu" name="SysAdmin" url="/Admin/Home" selectedPattern="/Admin/Home(/\w+)*" permissionPattern="/Admin">
  <menu name="Site" url="/Admin/Site" selectedPattern="/Admin/Site(/\w+)?" permissionPattern="/Admin">
    <menu name="AddSite" url="/Admin/Site/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
  <menu name="Users" url="/Admin/User" selectedPattern="/Admin/user(/\w+)?" permissionPattern="/Admin">
    <menu name="AddUser" url="/Admin/User/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="DeleteUser" url="javascript:Delete('list-form');" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
  <menu name="Roles" url="/Admin/Role" selectedPattern="/Admin/role(/\w+)?" permissionPattern="/Admin">
    <menu name="AddRole" url="/Admin/Role/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="DeleteRole" url="javascript:Delete('list-form');" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
  <menu name="Category" url="/Admin/CategoryItem" selectedPattern="/Admin/Category(/\w+)?" permissionPattern="/Admin">
    <menu name="AddCategory" url="/Admin/CategoryItem/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="DeleteCategory" url="javascript:Delete('list-form');" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
  <menu name="DataSource" url="/Admin/DataSource" selectedPattern="/Admin/DataSource(/\w+)?" permissionPattern="/Admin">
    <menu name="AddDataSourceCategory" url="/Admin/DataSourceCategory/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="AddDataSource" url="/Admin/DataSource/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="DeleteDataSource" url="javascript:Delete('list-form');" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
  <menu name="Navigations" url="/Admin/NavigationItem" selectedPattern="/Admin/NavigationItem(/\w+)?" permissionPattern="/Admin">
    <menu name="AddNavigationGroup" url="/Admin/NavigationGroup/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="AddNavigationItem" url="/Admin/NavigationItem/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="DeleteNavigationItem" url="javascript:Delete('list-form');" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
  <menu name="Localization" url="/Admin/Local" selectedPattern="/Admin/Local(/\w+)?" permissionPattern="/Admin">
    <menu name="AddLocal" url="/Admin/Local/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="DeleteLocal" url="javascript:DeleteLang();" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="JsonLocalization" url="/Admin/JsonLocal" selectedPattern="/JsonLocal(/\w+)?" permissionPattern="/Admin">
      <menu name="AddJsonLocal" url="/Admin/JsonLocal/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
      <menu name="SaveJsonLocal" url="javascript:SaveLang();" selectedPattern="" permissionPattern="/Admin"/>
      <menu name="DeleteJsonLocal" url="javascript:DeleteLang();" selectedPattern="" permissionPattern="/Admin"/>
    </menu>
  </menu>
  <menu name="FriendlyUrl" url="/Admin/FriendlyUrl" selectedPattern="/Admin/FriendlyUrl(/\w+)?" permissionPattern="/Admin">
    <menu name="AddFriendlyUrl" url="/Admin/FriendlyUrl/Create" target="dialog" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="DeleteFriendlyUrl" url="javascript:Delete('list-form');" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
  <menu name="Log" url="/Admin/Log" selectedPattern="/Admin/log(/\w+)?" permissionPattern="/Admin">
    <menu name="DeleteLog" url="javascript:Delete('list-form');" selectedPattern="" permissionPattern="/Admin"/>
    <menu name="ClearLog" url="/Admin/Log/Clear" selectedPattern="" permissionPattern="/Admin"/>
  </menu>
</menu>
